<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>OptionPricingCalculator|Home</title>
<link href="index.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="header_wrapper">
	<div id="header">
		<table width="100%" style="margin-bottom: 0px;" >
			<tr>
				<td id="logo" align="left"><img src="Op_logo.png" alt="option price logo" /></td>
				<td valign="bottom" align = "left">
					<?php
						if (!isset($_SESSION))
						{ session_start();
						}
						$text = "";
						if(isset($_SESSION['username']))
						{
							$text =    $_SESSION['username'] ;   
							echo  $text . "&nbsp;&nbsp; | &nbsp;&nbsp; <a href = 'logout.php'>Log Out</a>";
							  
						}
						else{
						
						echo "						
							
						
							<form method = 'post' action = 'login.php'/>
							<input type='text' name='username' placeholder='UserName'/>                        
							<input type='password' name='password' placeholder='Password'/>
							<input type = 'submit' value = 'Log In' name = 'submit'>
							</form>
						
							";}
					?>
				</td>
         
			</tr>
<!-- ========== menu bar========== --->
			<tr><td colspan="2" valign="top" style="padding-top: 0px; width:100%; white-space:nowrap" align="center">            
              <ul id="menu">                    
                	<li style="height: 18px; margin-left:18%;"><a href="index.php" class="drop">
                    	<img alt="Home" src="home_button.png" width="22" height="19px" /></a></li>
                    <li><a href="about_us.php" >About Us</a></li>
                    <li><a href="admin.php" >Admin</a></li>
                    <li><a href="contact_us.php" >Contact Us</a></li>
                    <li><a href="glossary.php">Glossary</a></li>
		</table>    
    </div>
</div>
<!----=============body===========---->
<div id="body_wrapper">
	<table align="center">
	<tr>
		<td style="width:50%">
			<h2>Option Calculator</h2>
			<table>
				<tr>
					<td>
						<iframe src="bs2.php" width="auto" height="auto" name="bs2">
							<p>Some problems with your browser<a href="bs2.php">Click here</a></p>
 
						</iframe>
					</td>
				</tr>
			
			</table>
        </td>
		<td style="width:50%; padding-left:20%">Results</td>
	</tr>	
	</table>
	<h5 style="padding-left:20%">For more feature:<a href="register.php" >Register</a></h5>
</div>

<!--==============footer==============---->
 <div id="footer_wrapper"> 	
    <div id="footer_text">Copyright � 2013 , Option Pricing Website. All Rights Reserved.</div>    
 </div>

</body>
</html>

